﻿using System;
using System.Collections.Generic;
using SIG.Model;

namespace SIG.Service
{
    public interface IProductService : IEntityService<Product>
    {
        //IEnumerable<Category> GetCategories();

        Product GetProductByIdWithCategories(int id);

        IList<Product> SearchProducts(int pageIndex, int pageSize);
        IList<Product> SearchProducts(int pageIndex, int pageSize, int catId);

        int SearchProductsCount();
        int SearchProductsCount(int catId);
        IList<Product> GetActiveProducts(int pageIndex, int pageSize);
        int GetActiveProductsCount();
        IList<Product> GetActiveProducts(int pageIndex, int pageSize, int catId);
        int GetActiveProductsCount(int catId);

        void UpdateProductWithCategory(Product product);
    }
}
